package com.etcbase.dcs.utils.gui;

import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;

public class LayoutHelper {
	
	public static int getLayoutParamWidth( ViewGroup layout ){
		LayoutParams params = layout.getLayoutParams();
		return params.width;
	}
	
	public static void setLayoutParamWidth( ViewGroup layout, int width ) {
		LayoutParams params = layout.getLayoutParams();
		params.width = width;
		layout.setLayoutParams(params);
	}
}
